using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GMailNotifierNET.Forms
{
    public partial class FEnterCredentials : Form
    {
        public FEnterCredentials()
        {
            InitializeComponent();
        }

        private void FEnterCredentials_Load(object sender, EventArgs e)
        {
            txtUsername.Text = Settings.Default.GMailUsername;
        }

        public string Username
        {
            get { return this.txtUsername.Text; }
        }

        public string Password
        {
            get { return this.txtPassword.Text; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}